package org.grayrabbit.cms.constant;


public class ConstantEnum {
	
	public enum  Flag{
		TRUE(1,true),
		FALSE(0, false);
		
		private int value;
		private boolean name;
		
		private Flag(int value,boolean name){
			this.name = name;
			this.value=value;
		}

		public int getValue() {
			return value;
		}

		public void setValue(int value) {
			this.value = value;
		}

		public boolean isName() {
			return name;
		}

		public void setName(boolean name) {
			this.name = name;
		}
  
	}
	
	public enum Module{
		SYSTEM("system","系统管理"),
		SITE("site","站点管理"),
		CAT("cat","栏目管理"),
		TOPIC("tpoic","专题管理"),
		CONTENT("content","内容管理"),
		PUBLISH("publish","发布"),
		THEME("theme","主题管理"),
		PLUGIN("plugin","应用插件管理"),
		HONOR("honor","企业荣誉管理"),
		OFFER("offer","企业招聘管理"),
		Channel("channel","投诉渠道管理"); 
		private String name;
		private String value; 
		
		private Module(String name, String value) {
			 this.name=name;
			 this.value=value;
		}
		public String getName() {
			return name;
		}
		public void setName(String name) {
			this.name = name;
		}
		public String getValue() {
			return value;
		}
		public void setValue(String value) {
			this.value = value;
		}
	}
	
	public enum OperAct{
		LOGIN("login","登录"),
		LOGOUT("logout","退出"),
		ADD("add","新增"),
		DEL("del","删除"),
		EDIT("edit","编辑"),
		ADUIT("aduit","审核"),
		MOVE("move","移动"),
		MERGE("merge","合并"),
		COPY("copy","拷贝"),
		ENABLE("enable","启用"),
		UP("up","上移"),
		DOWN("down","下移"),
		DISABLE("disable","禁用"),
		LOCK("lock","锁定"),
		UNLOCK("unlock","解锁"),
		PUBLISH("publish","发布"),
		AUTOPUBLISH("autoPublist","自动发布"),
		ADD_PUBLISH("add_publish","保存发布"),
		DISTRIBUTE("distribute","分配"); 
		
		private String name;
		private String value; 
		
		private OperAct(String name, String value) {
			 this.name=name;
			 this.value=value;
		}
		public String getName() {
			return name;
		}
		public void setName(String name) {
			this.name = name;
		}
		public String getValue() {
			return value;
		}
		public void setValue(String value) {
			this.value = value;
		}
	}
	
	public enum MatchFlag{
		EQ(1,"精确匹配"),
		LIKE(2,"模糊匹配");
		
		private int key;
		private String value;
		private MatchFlag(int key, String value) {
			 this.key=key;
			 this.value=value;
		}
		public int getKey() {
			return key;
		}
		public void setKey(int key) {
			this.key = key;
		}
		public String getValue() {
			return value;
		}
		public void setValue(String value) {
			this.value = value;
		}
	 
	}
	
	public enum SearchRange{
		ALL(1,"全文"),
		TITLE(2,"标题");
		
		private int key;
		private String value;
		private SearchRange(int key, String value) {
			 this.key=key;
			 this.value=value;
		}
		public int getKey() {
			return key;
		}
		public void setKey(int key) {
			this.key = key;
		}
		public String getValue() {
			return value;
		}
		public void setValue(String value) {
			this.value = value;
		}
	 
	}
	/**前台查询 内容选择类型	 */
	public enum ContentType{
		ALL(1,"全部内容"),
		IMAGE(2,"含图片"),
		VIDEO(3,"含视频");
		
		private int key;
		private String value;
		private ContentType(int key, String value) {
			 this.key=key;
			 this.value=value;
		}
		public int getKey() {
			return key;
		}
		public void setKey(int key) {
			this.key = key;
		}
		public String getValue() {
			return value;
		}
		public void setValue(String value) {
			this.value = value;
		}
	 
	}

	/**前台查询 时间类型	 */
	public enum TimeFlag{
		ALL(0,"全部时间"),
		HOUR(-1,"1小时内"),
		DAY(1,"1天内"),
		WEEK(7,"1周内"),
		MONTH(30,"一个月"),
		CUSTOM(100,"指定日期范围");
		
		private int key;
		private String value;
		private TimeFlag(int key, String value) {
			 this.key=key;
			 this.value=value;
		}
		public int getKey() {
			return key;
		}
		public void setKey(int key) {
			this.key = key;
		}
		public String getValue() {
			return value;
		}
		public void setValue(String value) {
			this.value = value;
		}
	}
	
	/**热门关键词类型类型	 */
	public enum HotKeywordType{		 
		ONE("one","1小时"),
		FOUR("four","4小时"),
		EIGHT("eight","8小时"),
		DAY("day","一天"),
		WEEK("week","一星期"),
		MONTH("month","一个月"),
		FOREVER("forever","超越1个月"),
		CUSTOM("custom","人工设定");
		
		private String key;
		private String value;
		private HotKeywordType(String key, String value) {
			 this.key=key;
			 this.value=value;
		}
		public String getKey() {
			return key;
		}
		public void setKey(String key) {
			this.key = key;
		}
		public String getValue() {
			return value;
		}
		public void setValue(String value) {
			this.value = value;
		}
	}
	
	public enum ContentTypes{		 
		/**  普通内容  */
		CONTENT("Content","普通文章"),
		/** 图片内容   */
		PICTURE("PictureContent","图片文章"),
		/**  软件内容  */
		SOFT("SoftwareContent","软件文章"),
		/**  链接内容  */
		LINK("LinkContent","链接文章"),
		/**  视频内容  */
		VIDEO("VideoContent","视频文章"),
		/**  flash内容  */
		FLASH("FlashContent","动画文章");
		/**  诉求渠道内容  */
//		CHANNEL("Channel","诉求渠道"); 
		
		private String key;
		private String value;
		private ContentTypes(String key, String value) {
			 this.key=key;
			 this.value=value;
		}
		public String getKey() {
			return key;
		}
		public void setKey(String key) {
			this.key = key;
		}
		public String getValue() {
			return value;
		}
		public void setValue(String value) {
			this.value = value;
		}
	}
}
